<{include file="../common/header.tpl"}>
<script>
function open_staff(network_id,open_staff){
    $.getJSON('/webadmin/staff/open',{network_id:network_id,open_staff:open_staff},function(res){
        if (res.status==1) {
            alert('操作成功');
            location.reload();
            return false;
        }
        alert('操作失败');
    });
    return false;
}
</script>
<table width="100%" border="0" cellspacing="0">
 <tr>
    <td width="13%" valign="top">
        <{include file="../common/left.tpl"}>
    </td>
    <td width="87%" valign="top">

        <table width="100%" border="0" cellspacing="0">
          <tr>
             <td>
              <div class="subnav">
                <div class="clearbox"></div>
              </div>

              <div class="pad_10">
                <div class="table-list">
                <table width="100%">
                      <thead>
                        <tr>
                              <th width="128">网点编号</th>
                              <th width="400" align="left">网点名称</th>
                              <th width="200">所属银行</th>
                              <th width="231">管理操作</th>
                        </tr>
                      </thead>
                      <tbody>
                          <{foreach $list as $key => $val}>
                         <tr onMouseOver="this.className='tr2'" onMouseOut="this.className='tr1'" class="tr1">
                              <td align="center"><{$val.network_num}></td>
                              <td>
                                  <{if $val.open_staff}>
                                  <a href="/webadmin/staff/list?network_id=<{$val.network_id}>"><span style="">※ <{$val.network_name}></span></a> 
                                  <{else}>
                                  <span style="">※ <{$val.network_name}></span>
                                  <{/if}>
                              </td>
                              <td align="center"><{if $banklist[$val.bank_id]}><{$banklist[$val.bank_id]}><{/if}></td>
                              <td align="center"><{if $val.open_staff==1}><a href="javascript:;" onclick="open_staff(<{$val.network_id}>, 0);">关闭</a><{else}><a href="javascript:;" onclick="open_staff(<{$val.network_id}>, 1);">开通</a><{/if}></td>
                        </tr>
                        <{/foreach}>
                      </tbody>
                </table>

                <div id="pages"><{$page}></div>
                </div>
              </div>

             </td>
          </tr>
        </table>

    </td>
</tr>
</table>
<{include file="../common/footer.tpl"}>